/*
 * @Author: c
 * @Date: 2023-12-06 01:06:29
 * @LastEditTime: 2024-01-06 18:21:22
 * @LastEditors: c
 * @Description: 
 * @FilePath: \music-web-backend\src\core\roles\roles.module.ts
 * https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Module, forwardRef } from '@nestjs/common';
import { RolesService } from './roles.service';
import { RolesController } from './roles.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Role } from './entities/role.entity';
import { UserModule } from '../user/user.module';
import { RoleMenu } from './entities/role_menu.entity';

@Module({
  imports:[
    TypeOrmModule.forFeature([Role,RoleMenu]),
    forwardRef(() => UserModule)
  ],
  controllers: [RolesController],
  providers: [RolesService],
  exports:[RolesService]
})
export class RolesModule {}
